package za.ac.cput.garethc.designpatterns.behavioural.state;

/**
 *
 * @author Gareth
 */
public class Person implements EmotionalState
{
    EmotionalState emotionalState;

    public Person(EmotionalState emotionalState)
    {
        this.emotionalState = emotionalState;
    }

    public void setEmotionalState(EmotionalState emotionalState)
    {
        this.emotionalState = emotionalState;
    }

    @Override
    public String sayGoodbye()
    {
        return emotionalState.sayGoodbye();
    }

    @Override
    public String sayHello()
    {
        return emotionalState.sayHello();
    }
}
